<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ include file="../../base.jsp"%>
<!DOCTYPE html>
<html>

<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>黑马面面管理系统</title>
    <meta name="description" content="AdminLTE2定制版">
    <meta name="keywords" content="AdminLTE2定制版">
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
</head>
<body>
<div id="frameContent" class="content-wrapper" style="margin-left:0px;">
<section class="content-header">
    <ol class="breadcrumb">
        <li><a href="all-admin-index.html"><i class="fa fa-dashboard"></i> 首页</a></li>
    </ol>
</section>
<section class="content">
    <div class="box box-primary">
        <div class="box-header with-border">
            <h3 class="box-title">考试题目</h3>
        </div>
        <div class="box-body">
            <div class="table-box">
                <form action="/store/question/getScore" method="post">
                    <c:forEach items="${questions}" var="item" varStatus="v">
                        <h3>第${v.count}题</h3>
                        <b>${item.subject}</b>
                        <c:if test="${item.type eq '1'}">
                            <input type="radio" name="radio${v.count}" id="radio1${v.count}" value="${item.questionItems[0].isRight}"/>&nbsp;&nbsp;A.<label for="radio1${v.count}">${item.questionItems[0].content}</label><br/>
                            <input type="radio" name="radio${v.count}" id="radio2${v.count}" value="${item.questionItems[1].isRight}"/>&nbsp;&nbsp;B.<label for="radio2${v.count}">${item.questionItems[1].content}</label><br/>
                            <input type="radio" name="radio${v.count}" id="radio3${v.count}" value="${item.questionItems[2].isRight}"/>&nbsp;&nbsp;C.<label for="radio3${v.count}">${item.questionItems[2].content}</label><br/>
                            <input type="radio" name="radio${v.count}" id="radio4${v.count}" value="${item.questionItems[3].isRight}"/>&nbsp;&nbsp;D.<label for="radio4${v.count}">${item.questionItems[3].content}</label>
                        </c:if>
                        <c:if test="${item.type eq '2'}">
                            <input type="checkbox" name="checkbox${v.count}" id="checkbox1${v.count}" value="${item.questionItems[0]}"/>&nbsp;&nbsp;A.<label for="checkbox1${v.count}">${item.questionItems[0].content}</label><br/>
                            <input type="checkbox" name="checkbox${v.count}" id="checkbox2${v.count}" value="${item.questionItems[1]}"/>&nbsp;&nbsp;B.<label for="checkbox2${v.count}">${item.questionItems[1].content}</label><br/>
                            <input type="checkbox" name="checkbox${v.count}" id="checkbox3${v.count}" value="${item.questionItems[2]}"/>&nbsp;&nbsp;C.<label for="checkbox3${v.count}">${item.questionItems[2].content}</label><br/>
                            <input type="checkbox" name="checkbox${v.count}" id="checkbox4${v.count}" value="${item.questionItems[3]}"/>&nbsp;&nbsp;D.<label for="checkbox4${v.count}">${item.questionItems[3].content}</label>
                        </c:if>
                    </c:forEach>
                    <br/>
                    <button type="submit" class="btn bg-olive btn-xs" style="height: 30px; width: 50px">交卷</button>
                </form>
            </div>

        </div>
    </div>
</section>
</div>
</body>
</html>